<template>
	<view class="container">
		<view class="content">
			<rich-text :nodes="$tools.formatRichText(row.content)"></rich-text>
		</view>
		<view class="btn-item">
			<view class="apply-btn"> 立即报名 </view>
			<view class="download-btn">下载手册</view>
		</view>
		<view style="height: 200rpx"></view>
	</view>
</template>

<script>
import { getTournamentDetail } from '@/api/index';
export default {
	data() {
		return {
			id: 0,
			content: 'Hello',
			row: {},
		};
	},
	onShareAppMessage() {},
	onShareTimeline() {},
	onLoad(query) {
		this.id = query.id;
		this.getData();
	},
	onShow() {},
	onReachBottom() {},
	onPullDownRefresh() {},
	methods: {
		getData() {
			getTournamentDetail({ id: this.id }).then((res) => {
				console.log(res);
				this.row = res.data;
			});
		},
	},
};
</script>

<style lang="scss">
@import 'index.scss';
</style>
